package com.exam.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author shenyang
 * @create 2022-11-01 19:31
 */
@Mapper
public interface UserMapper {
    @Select("select * from user_info")
    IPage<User> findAll(Page page);

    @Select("select * from user_info where status = #{status}")
    Page<User> findByStatus(Page page,String status);
}
